<template>
  <div class="mymenu">
      <div class="logo">
        <img src="../assets/logo.png" alt="">
      </div>
      <el-menu
        active-text-color="#ffd04b"
        background-color="#232323"
        class="el-menu-vertical-demo"
        default-active="2"
        text-color="#fff"
        @open="handleOpen"
        @close="handleClose"
        :router="true"
      >
        <el-menu-item index="/layout/artcate">
          <el-icon><Reading /></el-icon>
          <span>文章分类</span>
        </el-menu-item>
         <el-menu-item index="/layout/artlist">
          <el-icon><Platform /></el-icon>
          <span>文章管理</span>
        </el-menu-item>
        <el-sub-menu index="1">
          <template #title>
            <el-icon><OfficeBuilding /></el-icon>
            <span>个人中心</span>
          </template>

              <el-menu-item index="/layout/baseuser">
                   <el-icon><Coin /></el-icon>
                  <span>基本资料</span>
              </el-menu-item>
              <el-menu-item index="/layout/useravator">
                <el-icon><CameraFilled /></el-icon>
                  <span>更换头像</span>
              </el-menu-item>
              <el-menu-item index="/layout/editpass">
                 <el-icon><GoodsFilled /></el-icon>
                  <span>重置密码</span>
              </el-menu-item>
       
        </el-sub-menu>
        <el-menu-item index="/tong">
          <el-icon><Reading /></el-icon>
          <span>数据统计</span>
        </el-menu-item>
         <el-menu-item index="/tou">
          <el-icon><Reading /></el-icon>
          <span>数据统计1</span>
        </el-menu-item>
           <el-menu-item index="/shunfeng">
          <el-icon><Reading /></el-icon>
          <span>数据大屏</span>
        </el-menu-item>
             <el-menu-item index="/dragg">
          <el-icon><Reading /></el-icon>
          <span>拖拽</span>
        </el-menu-item>
             <el-menu-item index="/three">
          <el-icon><Reading /></el-icon>
          <span>3d的three</span>
        </el-menu-item>
      </el-menu>
  </div>
</template>

<script setup>
    import {Reading,Platform,CameraFilled,OfficeBuilding,Coin,GoodsFilled} from '@element-plus/icons-vue'
</script>
<style lang="scss">
.mymenu{
  height:100vh;
   background:#232323;
}
    .logo{
      width:100%;
      height:160px;
      background:#232323;
      display:flex;
      justify-content:center;
      align-items:center;
    }
</style>  
